<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>个人信息</title>
	<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<link rel="stylesheet" href="__STATIC__/css/base.css">
	<link rel="stylesheet" href="__STATIC__/mui/css/mui.min.css">
	<link rel="stylesheet" href="__STATIC__/icon/icon.css">
	<script type="text/javascript" src="__STATIC__/js/core/jquery.min.js"></script>
	<script type="text/javascript" src="__STATIC__/layer/layer.js"></script>
</head>
<body>
<link rel="stylesheet" href="__STATIC__/member/user.css">
<div class="BaseInfos">
	<ul>
		<ol><img src="{$info.icon|tempdir}" onerror="this.src='__STATIC__/images/nobody.gif'"/></ol>
		<li>
			<div>{$info.username} ({$info.groupid|getGroupByid})</div>
			<p>注册日期 {$info.regdate|set_date}</p>
		</li>
	</ul>
</div>
<div class="OtherInfos">
	<ul>

		<li>
			<div><i class="fa fa-fw fa-database"></i></div>
			<span>积分{$info.money}个</span> 
		</li>	

		<li class="money">
			<div><i class="fa fa-rmb"></i></div>
			<span>余额{$info.rmb}元</span> 
		</li>
		<li>
			<div><i class="fa fa-fw fa-comment"></i></div>
			<span onclick="window.location.href='{:url('member/msg/add',['uid'=>$info['uid']])}'">发消息</span> 
		</li>		
	</ul>
</div>
<div class="SideInfos">
	<h3><i class="fa fa-user"></i>我的基本信息</h3>
	<ul><ol>昵称</ol><li>{$info.nickname}</li></ul>
	<ul><ol>我的ID</ol><li>{$info.uid}</li></ul>
	<ul><ol>注册日期</ol><li>{:date("Y-m-d H:i:s",$info.regdate)}</li></ul>
</div>

<div class="SideInfos">
	<h3><i class="fa fa-fw fa-book"></i>我发的文章</h3>
{qb:tag name="wap_member_homepage_001" union="uid" type="cms" rows="5" mid="1" order="id" by="desc"}
	<ul> <ol style="width:80%;">{$i}、<a href="{$rs.url}">{$rs.title|get_word=24}</a></ol><li>{:date("m-d",$rs.create_time)}</li></ul>
{/qb:tag}
</div>

<div class="SideInfos wap_member_bbs">
	<h3><i class="fa fa-fw fa-file-text-o"></i>我的论坛贴子</h3>
{qb:tag name="wap_member_homepage_002" union="uid" type="bbs" rows="5" mid="1" order="id" by="desc"}
	<ul> <ol style="width:80%;"><span>{$i}</span>、<a href="{$rs.url}">{$rs.title|get_word=24}</a></ol><li>{:date("m-d",$rs.create_time)}</li></ul>
{/qb:tag}
</div>

<script type="text/javascript">
var Mpage=1;
function ShowMoreBBs(){
	Mpage++;
	$.get('{qb:url name="wap_member_homepage_002" /}'+Mpage,function(res){
		if(res.code==0){
			if(res.data==''){
				layer.msg("已经显示完了！",{time:500});
			}else{				
				$('.wap_member_bbs').append(res.data);
				set_i_num();
				scroll_get = true;
			}
		}else{
			layer.msg(res.msg,{time:2500});
		}
	});
}

//滚动显示更多
var scroll_get = true;	//做个标志,不要反反复复的加载
$(document).ready(function () {
	$(window).scroll(function () {
		if (scroll_get==true &&  (400 + $(window).scrollTop())>($(document).height() - $(window).height())) {
			scroll_get = false;
			layer.msg('内容加截中,请稍候',{time:1000});
			ShowMoreBBs();
		}
	});
});

//设置贴子序号
function set_i_num(){
	var j = 0;
	$('.wap_member_bbs ul span').each(function(){
		j++;
		$(this).html(j);
	});
}

</script>


{if ($userdb.uid==$info.uid||$userdb.groupid==3)}
<div class="SideInfos">
	<h3><i class="si si-lock"></i>我的私密资料</h3>
	 
	<ul><ol>真实姓名</ol><li>{$info.truename}</li></ul>
	<ul><ol>联系电话</ol><li>{$info.mobphone}</li></ul>
	<ul><ol>联系地址</ol><li>{$info.address}</li></ul>
	<div class="note">私密资料只有本人与管理员才可查看,其它人无法查看!</div>	
</div>
{/if}
</body>
</html>